package org.familysearch.fsapi.gwt.server.dao;

import java.io.Serializable;
import java.util.List;

public interface GenericDAO<T, ID extends Serializable> {

	void setSession(Session s);
	Session getSession();
	
	T findById(ID id) throws DAOException;
	List<T> findAll()  throws DAOException;
	List<T> findAll(T loaded)  throws DAOException;
	List<T> findByExample(T exampleInstance, String... excludeProperty) throws DAOException;	
	
}
